<template>
    <div class="list">
        <div class="header" style="background-color:white;">
            <el-page-header @back="goBack" content="案件详细信息" style="position: relative;top: 10px;left: 5px;">
            </el-page-header>
        </div>
        <el-divider></el-divider>

        <div class="law-box">
            <el-header class="title" style="position: relative;left:-15px;font-size: 30px">
                <i class="el-icon-document">基本资料</i>
            </el-header>

            <div class="message">
                <div class="grid-content bg-purple">案号：<br>{{law.caseNo}}</div>
                <div class="grid-content bg-purple">提交时间：<br>{{law.caseSubtime}}</div>
                <div class="grid-content bg-purple">案件类型：<br>{{law.caseTypeName}}</div>
                <div class="grid-content bg-purple">收案时间：<br>{{law.collectionTime}}</div>
                <div class="grid-content bg-purple">委托人：<br>{{law.caseWtr}}</div>
                <div class="grid-content bg-purple">对方当事人：<br>{{law.caseOppositeParties}}</div>
                <div class="grid-content bg-purple">第三方：<br>{{law.caseThirdParty}}</div>
                <div class="grid-content bg-purple">承办律师：<br>{{law.caseAttorney}}</div>
                <div class="grid-content bg-purple">诉讼地位：<br>{{law.caseLawsuitStatus}}</div>
                <div class="grid-content bg-purple">诉讼阶段：<br>{{law.caseStatus}}</div>
                <div class="grid-content bg-purple">诉讼标的：<br>{{law.caseLawsuitobj}}</div>
                <div class="grid-content bg-purple">代理费：<br>{{law.caseAgencyfee}}</div>
                <div class="grid-content bg-purple">收费方式：<br>{{law.caseChargeWay}}</div>
                <div class="grid-content bg-purple">
                    是否享受政府补助：<br>
                    {{law.caseSubsidy=='Y'?'是':'否'}}
                </div>
                <div class="grid-content bg-purple">补助金额：<br>{{law.caseSubsidysal}}</div>
                <div class="grid-content bg-purple">
                    收案审批状态：<br>
                    {{law.caseApproveStatus==1?'审批中':
                    law.caseApproveStatus==2?'审批不通过':'审批通过'}}
                </div>
                <div class="grid-content bg-purple">案由：<br>{{law.caseCause}}</div>
                <div class="grid-content bg-purple">备注：<br>{{law.caseRemarks}}</div>
            </div>
        </div>

        <el-divider></el-divider>

        <div class="lawyer-box">
            <el-header class="title" style="position: relative;left:-15px;font-size: 30px">
                <i class="el-icon-user">承办律师</i>
            </el-header>
            <el-table :data="cwPerformancesplitList" :border="true">
                <el-table-column prop="caseAttorney" label="类型"></el-table-column>
                <el-table-column prop="empName" label="姓名"></el-table-column>
                <el-table-column prop="cwPerformancesplit" label="业绩分成"></el-table-column>
                <el-table-column prop="cwSplitType" label="分成方式"></el-table-column>
            </el-table>
        </div>

        <el-divider></el-divider>

        <div class="seal-box">
            <el-header class="title" style="position: relative;left:-15px;font-size: 30px">
                <i class="el-icon-s-order">费用减免记录</i>
            </el-header>
            <el-table :data="decreaseList" :border="true">
                <el-table-column prop="applyDate" label="申请日期"></el-table-column>
                <el-table-column prop="decreaseMoney" label="减免金额"></el-table-column>
                <el-table-column prop="person" label="申请人"></el-table-column>
                <el-table-column prop="reason" label="申请减免事由"></el-table-column>
                <el-table-column prop="status" label="审批状态">
                    <template slot-scope="scope">
                        {{scope.row.status=='1'?'审批中':
                        scope.row.status=='2'?'审批不通过':'审批通过'}}
                    </template>
                </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
    export default {
        props:['law','cwPerformancesplitList','decreaseList'],
        data() {
            return {

            }
        },
        methods:{
            goBack(){
                this.$emit('back')
            }
        }
    }
</script>

<style scoped>
    .list{
        width: 100%;
    }
    .law-box,.lawyer-box,.seal-box{
        width: 100%;
    }
    .message{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-left: 8px;
    }
    .bg-purple {
        border: 1px solid gainsboro;
        width: 32%;
        padding-top: 15px;
        height: 70px;
        padding-left: 10px;
    }
</style>
